import { Routes } from "@angular/router";
import { HeroesComponent } from "../heroes";
import { HeroDetailComponent } from "../heroes-detail";
import { DashboardComponent } from "../dashboard";

export const routes: Routes = [
  { path: "", redirectTo: "/dashboard", pathMatch: "full" },
  { path: "heroes", component: HeroesComponent },
  { path: "detail/:id", component: HeroDetailComponent },
  { path: "dashboard", component: DashboardComponent }
];
